package com.fth.learn.chapter03;

/**
 * 宠物之家
 * YiMi
 *
 * @author YiMi
 * @version 1.0
 * @date 2023/5/13 14:04
 */

public class LearnPetFamily {

    public static  String salePet(PetEnum pet){

        return "编号为"+pet.getId()+"名字叫"+pet.getName()+"种类是"+pet.getType();
    }

    public static void main(String[] args) {
        System.out.println("小于同学买小猫");

        String s = salePet(PetEnum.pet1001);
        System.out.println(s);
    }

}
